﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MasterPage.Master"
    Inherits="System.Web.Mvc.ViewPage<AdminRoleDto>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="content">
        <h1>
            创建/编辑角色：<a href="<%=Url.Action("AdminList", "Admin")%>">&lt;&lt;返回</a></h1>
        <%
            using (Html.BeginForm("SaveRole", "Admin"))
            {%>
        <table class="addData">
            <caption>
                <h2>
                    编辑管理角色
                </h2>
            </caption>
            <tr>
                <td class="alignR">
                    <span class="redTxt">*</span>角色名
                </td>
                <td>
                    <label>
                        <%=Html.TextBox("RoleName", Model.RoleName, new {Class = "textInput"})%>
                        <%=Html.Hidden("RoleID", Model.RoleID)%>
                    </label>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <label>
                        <input type="submit" name="button" id="button" value="保存" />
                    </label>
                </td>
            </tr>
        </table>
        <table class="subStree">
            <caption>
                <label class="title">
                    角色拥有的菜单权限</label>
            </caption>
            <%=ViewData["ManageMenuList"]%>
        </table>
        <%
            }%>
    </div>
</asp:Content>
